package com.nio.controller;

import com.nio.service.AopDemo;
import com.nio.service.impl.AopDemoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/aop")
public class DevAop {

    @Autowired
    private AopDemoImpl aopDemoImpl;

    @RequestMapping("/base")
    public void baseAop(){
        aopDemoImpl.devAop("测试");
    }
}
